package com.learn.composite.transparent;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: SComponent </p>
 *
 * SComposite interface.
 */
public abstract class Component {

    protected String name;

    public Component(String name) {
        this.name = name;
    }

    public abstract void add(Component component);

    public abstract void remove(Component component);

    public abstract void display(int depth);
}
